package team.you.change.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import team.you.change.pojo.Apply;
import team.you.change.service.ApplyService;
import team.you.change.service.TeacherService;
import team.you.change.service.TimeTableService;
import team.you.change.util.Result;

@Controller
@RequestMapping("/apply")
public class ApplyController {
    @Autowired
    private ApplyService applyService;

    @RequestMapping("/add")
    @ResponseBody
    private Result add(Apply apply){
        return applyService.add(apply);
    }
    @RequestMapping("/check")
    @ResponseBody
    private Result check(Integer id, Integer type){
        return applyService.check(id, type);
    }
}
